/*******************************************************************************
 * Copyright (c) 2012-2017 TypeFox GmbH and itemis AG.
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Moritz Eysholdt - Initial contribution and API
 *******************************************************************************/

package org.eclipse.xpect.state;

import org.eclipse.xpect.text.CharSequences;

public class ManagedImpl<T> implements Managed<T> {

	private final T value;

	public ManagedImpl(T value) {
		super();
		this.value = value;
	}

	public T get() {
		return value;
	}

	public void invalidate() {
	}

	@Override
	public String toString() {
		return "Managed[" + CharSequences.toSingleLineString(value, 80) + "]";
	}

}
